package com.k8s.hello.client;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import java.util.Map;

@Service
@Slf4j
public class BaseService {

    private final BaseClient baseClient;

    public BaseService(BaseClient baseClient) {
        this.baseClient = baseClient;
    }

    public Map<String,Object> getConfig() {
        return baseClient.getConfig().getBody();
    }
}
